package com.pig4cloud.pigx.contract.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import com.pig4cloud.pigx.contract.annotation.SetScaleMainCurrency;
import com.pig4cloud.pigx.contract.annotation.SetScaleTokenCurrency;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 */
@Data
public class ContractLiquidateOrderVO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 币对名称
	 */
	private String symbolName;

	/**
	 * 数量
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	@SetScaleTokenCurrency
	private BigDecimal num;

	/**
	 * 价格
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	@SetScaleMainCurrency
	private BigDecimal price;

	/**
	 * 杠杆倍数
	 */
	private Integer multiple;

	/**
	 * 方向 0 多 1 空
	 */
	private String side;

	/**
	 * 仓位模式（0逐仓、1全仓）
	 */
	private String mode;

}
